//
//  RentHouseNavView.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/12/19.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "RentHouseNavView.h"

#import "ZMSearchController.h"

#import "BaseNavigationController.h"

@interface RentHouseNavView ()
@property (weak, nonatomic) IBOutlet UIButton *leftBtn;
@property (weak, nonatomic) IBOutlet UIButton *rightBigBtn;

@end

@implementation RentHouseNavView

- (void)awakeFromNib{
    
    
    [super awakeFromNib];
    
}
- (IBAction)rightBtnDidTap:(UIButton *)sender {
    
    
    UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc]init];
    
    flowLayout.sectionInset = UIEdgeInsetsMake(0, 15, 10, 15);
    
    flowLayout.minimumLineSpacing = 10;
    
    flowLayout.minimumInteritemSpacing = 10;
    
    ZMSearchController *temp = [[ZMSearchController alloc]initWithCollectionViewLayout:flowLayout];
    
    temp.type = @"4";

    BaseNavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:temp];
    
    [self.viewController presentViewController:nav animated:YES completion:nil];
    
}



@end
